package com.dtx.day1.entity;

import com.dtx.day5.day05Annotation.Component;

import java.math.BigDecimal;
import java.util.Date;

@Component
public class Goods {

    public static int i = 3;

    private String num;

    private String goodsName;

    private BigDecimal goodsPrice;

    private String goodsDesc;

    private Date createTime;

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Goods() {
    }

    public Goods(String num, String goodsName, BigDecimal goodsPrice, String goodsDesc, Date createTime) {
        this.num = num;
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
        this.goodsDesc = goodsDesc;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "num='" + num + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsPrice=" + goodsPrice +
                ", goodsDesc='" + goodsDesc + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}

